#include "GeomHead.h"

GeomObject* GeomHead::getObjApplyInvTransform(const Mat4d &_mat){ 
	printf("Error in line %d in file %s: Not Yet Implemented!\n", __LINE__, __FILE__);
	return new GeomHead(mDim);
}

void GeomHead::draw(Vec4d _color, bool _default){
	GLUquadric* cylinder = gluNewQuadric();
	glPushMatrix();
	getGLTransform();
	glMultMatrixd(mGLTransMat);
	glRotatef(-90,1,0,0);
	gluCylinder(cylinder,mDim[0]*0.515,mDim[0]*0.515,mDim[1],128,128);
//	glutSolidSphere(mDim[0]*0.5,128,128);
	glTranslatef(0,0,mDim[1]);
//	glutSolidSphere(mDim[0]*0.5,128,128);
	glPopMatrix();
	gluDeleteQuadric(cylinder);

	glPushMatrix();
	glTranslatef(mTransform[0][3]-mDim[0]*0.18, mTransform[1][3]+mDim[1]*0.55, mTransform[2][3] + mDim[0]*0.35);
//	glutSolidSphere(mDim[0]*0.16, 64, 64);
	glTranslatef(mDim[0]*0.36, 0,0);
//	glutSolidSphere(mDim[0]*0.16, 64, 64);
	glPopMatrix();

}
